package com.ark.cloud.java.persistence.service.impl;


import com.ark.cloud.java.persistence.entity.FireCKCmd;
import com.ark.cloud.java.persistence.mapper.FireCKCmdMapper;
import com.ark.cloud.java.persistence.service.FireCKCmdService;
import com.ark.cloud.java.persistence.utils.UUIDUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FireCKCmdServiceImpl extends ServiceImpl<FireCKCmdMapper, FireCKCmd> implements FireCKCmdService {

    @Autowired
    private FireCKCmdMapper fireCKCmdMapper;

    @Override
    public void saveFireCKCmd(FireCKCmd fireCKCmd) {
        fireCKCmd.setId(UUIDUtil.next());
        System.out.println("fireCKCmd:"+fireCKCmd);
        fireCKCmdMapper.insert(fireCKCmd);
    }
}
